package xyz.xxpc.springcloud.service.api;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import xyz.xxpc.springcloud.pojo.User;
import xyz.xxpc.springcloud.service.config.LogConfiguration;

import java.util.List;

@Service
@FeignClient(name = "PROVIDER-30081")
public interface UserService20081 {

    @GetMapping("/user")
    List<User> queryAll();

    @GetMapping("/user/{id}")
    User query(@PathVariable("id") Integer id);

    @PostMapping("/user")
    User add(User user);
}

